[Attachment(s) from Tom Kerekes included below]
Hi Gerald,
I was able to get it to work. I suspect your issue is with the Long/short/Integer mixups.
I changed the Jogger example to Check for Thread = -1 as a Key to flash a .out file.
Here is the success (running Version 4.33i and Flashing 4.33f):
Here is the new code in "Compile Load Coff"
Private Sub CompileLoadCoff_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CompileLoadCoff.Click
Dim Err As String = "Bad File"
Dim result As Integer
If CThread.Text = -1 Then
result = KM_LoadCoff(CThread.Text, CFile.Text, 1)
If (result = 0) Then
result = KM_WriteLineWithEcho("ProgFlashImage")
End If
Do
result = KM_CheckForReady(0)
Loop While (result <> 2)
result = 0
Else
result = KM_CompileAndLoadCoff(CThread.Text, CFile.Text, Err, 250)
End If
If (result = 0) Then
CompilerOutput.Text = "No Errors"
Else
CompilerOutput.Text = Err
End If
End Sub
I'll attach the changed files:
HTH
Regards
TK